home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / text0056.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.2 KB  |  26 lines

  1. On 08-Apr-97, Hakan Venderlof wrote:
  2. >Is there some way an amosprogram can detect if
  3. >other programs are using the serial port?
  4.  
  5. This falls in line with a lot of other things as well. First, use Request Off
  6. to turn off the AMOS requesters. Then use Trap Serial Open
  7. Channel,Port,Shared,XMode,7Wires : If Errtrap Then <serial port unavailable>
  8.  
  9. Use similar code for opening files, etc. and you will put more control in your
  10. program's hands as well as hiding the AMOSness of the program.
  11.  
  12. Well met and godspeed,
  13.                       Giark
  14.                                            joehick@golden.net
  15.                              http://www.golden.net/~joehick/fbn/index.html
  16.      ______  ______    _____  .------------------------------------------.
  17.     / ____/ / __  /   / ___ \ !     AMOS games, utilities, demos, etc.   !
  18.    / /__   / /_/ /   / /  / / !                                          !
  19.   / ___/  / ___  |  / /  / /  !       CyberSpace BBS (519)579-0072       !
  20.  / /     / /__/ /  / /  / /   !     on A2000 060/50MHz (519)579-0173     !
  21. /_/     /______/  /_/  /_/    !                                          !
  22.    Fly By Nite Videe-Oh!      !  FBN Amiga 500 020 14MHz 1C/5F RAM 3.1OS !
  23.                               `------------------------------------------'
  24.  
  25.  
  26.